import request from '@/utils/request.js'

/**
 * 查看计费规则列表
 */
export function getCarrule(params) {
  return request({
    url: '/parking/rule/list',
    params
  })
}

/**
 * 创建规则
 * @returns
 */
export function createRuleAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'POST',
    data
  })
}
